<template>
  <div>
    <ul>
      <li v-for="(item, key) in messageList" :key="key">
        {{key}} --- {{item.Address}}
      </li>
    </ul>
  </div>
</template>

<script>
import api from './../axios/api.js'
export default {
  name: 'HelloWorld',
  data () {
    return {
      messageList: []
    }
  },
  created () {
    api.JH_news('/data/index2', {}).then(res => {
      console.log(res)
      this.messageList = res
    })
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>
